package service;

import java.util.List;

public interface MessagesQueue {
	/**
	 * 向队列中添加消息
	 * @param message
	 * @throws Exception
	 */
	public void addMessage(String message) throws Exception;
	
	/**
	 * 获取指定大小的消息
	 * @param size
	 * @return
	 * @throws Exception
	 */
	public List<String> getMessages(int size) throws Exception;

}
